/*
package com.it.web.bus;

import com.it.goods.api.GoodsApi;
import com.it.goods.vo.GoodsVO;
import com.it.web.config.Result;

import com.it.web.controller.bo.GoodsBusBO;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

@Service
public class GoodsBusService {
    //商品服务
    @DubboReference(version = "${goods.service.version}")
    private GoodsApi goodsApi;

    */
/**
     * 查询商品
     *
     * @return
     *//*

    public Result queryGoodsById(long goodsId) {
        Result result = new     Result();
        GoodsVO goodsVO =  goodsApi.queryGoodsById(goodsId);

        result.setData(goodsVO);
        return result;
    }

    */
/**
     * 添加商品
     *
     * @return
     *//*

    public Result addGoods(GoodsBusBO goodsBusBO) {
        Result result = new     Result();
        GoodsVO goodsVO = new GoodsVO();
        BeanUtils.copyProperties(goodsBusBO,goodsVO);
        goodsApi.addGoods(goodsVO);
        return result;
    }

    */
/**
     * 删除商品
     *
     * @return
     *//*

    public Result delGoods(long goodsId) {
        Result result = new     Result();
        goodsApi.delGoods(goodsId);
        return result;
    }

    */
/**
     * 修改商品
     *
     * @return
     *//*

    public Result updateGoods(GoodsBusBO goodsBusBO) {
        Result result = new     Result();
        GoodsVO goodsVO = new GoodsVO();
        BeanUtils.copyProperties(goodsBusBO,goodsVO);
        goodsApi.updateGoods(goodsVO);
        return result;
    }
}
*/
